var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
var _a, _b, _c, _d;
import { FaceLandmarker } from "@mediapipe/tasks-vision";
import { createInstance } from "localforage";
import _0x14279c from "lodash/assignWith";
const _0x3be7af = _0x1a81;
(function(_0xc49591, _0x114c25) {
  const _0x3df703 = { _0x30758a: 166, _0x56a4c6: 160, _0x32580e: 174, _0x5b94be: 136, _0x25f58f: 114, _0x54498f: 117 }, _0x152ab4 = _0x1a81, _0x3a3690 = _0xc49591();
  while (!![]) {
    try {
      const _0x27afcf = parseInt(_0x152ab4(_0x3df703._0x30758a)) / 1 + -parseInt(_0x152ab4(_0x3df703._0x56a4c6)) / 2 + -parseInt(_0x152ab4(_0x3df703._0x32580e)) / 3 + -parseInt(_0x152ab4(139)) / 4 * (parseInt(_0x152ab4(144)) / 5) + -parseInt(_0x152ab4(164)) / 6 + parseInt(_0x152ab4(_0x3df703._0x5b94be)) / 7 * (parseInt(_0x152ab4(_0x3df703._0x25f58f)) / 8) + -parseInt(_0x152ab4(_0x3df703._0x54498f)) / 9 * (-parseInt(_0x152ab4(158)) / 10);
      if (_0x27afcf === _0x114c25) break;
      else _0x3a3690["push"](_0x3a3690["shift"]());
    } catch (_0x97d07d) {
      _0x3a3690["push"](_0x3a3690["shift"]());
    }
  }
})(_0x55af, 312792);
function _0x1a81(_0x33e6b0, _0x2feb49) {
  const _0x48cc21 = _0x55af();
  return _0x1a81 = function(_0x5ebc912, _0x2d62cc2) {
    _0x5ebc912 = _0x5ebc912 - 114;
    let _0x20a383 = _0x48cc21[_0x5ebc912];
    if (_0x1a81["aoiDAT"] === void 0) {
      var _0x4d331e = function(_0x82ece9) {
        const _0x4530b0 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";
        let _0x561c63 = "", _0x3a1434 = "";
        for (let _0x14c067 = 0, _0x3b7490, _0x49375d, _0x3a7aef = 0; _0x49375d = _0x82ece9["charAt"](_0x3a7aef++); ~_0x49375d && (_0x3b7490 = _0x14c067 % 4 ? _0x3b7490 * 64 + _0x49375d : _0x49375d, _0x14c067++ % 4) ? _0x561c63 += String["fromCharCode"](255 & _0x3b7490 >> (-2 * _0x14c067 & 6)) : 0) {
          _0x49375d = _0x4530b0["indexOf"](_0x49375d);
        }
        for (let _0x9115dd = 0, _0x1bfbb2 = _0x561c63["length"]; _0x9115dd < _0x1bfbb2; _0x9115dd++) {
          _0x3a1434 += "%" + ("00" + _0x561c63["charCodeAt"](_0x9115dd)["toString"](16))["slice"](-2);
        }
        return decodeURIComponent(_0x3a1434);
      };
      _0x1a81["aFcYRT"] = _0x4d331e, _0x33e6b0 = arguments, _0x1a81["aoiDAT"] = !![];
    }
    const _0x2ee14f = _0x48cc21[0], _0x28c2e1 = _0x5ebc912 + _0x2ee14f, _0x17f653 = _0x33e6b0[_0x28c2e1];
    return !_0x17f653 ? (_0x20a383 = _0x1a81["aFcYRT"](_0x20a383), _0x33e6b0[_0x28c2e1] = _0x20a383) : _0x20a383 = _0x17f653, _0x20a383;
  }, _0x1a81(_0x33e6b0, _0x2feb49);
}
const _0x2d62cc = /* @__PURE__ */ function() {
  const _0x2230bd = { _0x2634ca: 141 };
  let _0x71683b = !![];
  return function(_0x4545d4, _0x1c9809) {
    const _0x228b6d = _0x71683b ? function() {
      const _0x47527c = _0x1a81;
      if (_0x1c9809) {
        const _0x59fc39 = _0x1c9809[_0x47527c(_0x2230bd._0x2634ca)](_0x4545d4, arguments);
        return _0x1c9809 = null, _0x59fc39;
      }
    } : function() {
    };
    return _0x71683b = ![], _0x228b6d;
  };
}(), _0x5ebc91 = _0x2d62cc(void 0, function() {
  const _0x1a4010 = { _0x17ec6f: 173, _0x17524f: 161, _0x39dccd: 157, _0x31460a: 126, _0x4bd995: 153 }, _0x14a8bc = _0x1a81;
  let _0x43aa4a;
  try {
    const _0x3bedf4 = Function("return (function() " + _0x14a8bc(_0x1a4010._0x17ec6f) + ");");
    _0x43aa4a = _0x3bedf4();
  } catch (_0x5bc86a) {
    _0x43aa4a = window;
  }
  const _0x3e6d92 = new RegExp(_0x14a8bc(128), "g"), _0x4e38cc = _0x14a8bc(_0x1a4010._0x17524f)[_0x14a8bc(149)](_0x3e6d92, "")[_0x14a8bc(_0x1a4010._0x39dccd)](";");
  let _0x5239aa, _0x4493d2, _0x6d94e2, _0x5e5015;
  const _0x1d075a = function(_0x3c57fd, _0xe9c9ea, _0xc68a3) {
    const _0x36044c = _0x14a8bc;
    if (_0x3c57fd[_0x36044c(126)] != _0xe9c9ea) return ![];
    for (let _0x16c03a = 0; _0x16c03a < _0xe9c9ea; _0x16c03a++) {
      for (let _0x1b2a94 = 0; _0x1b2a94 < _0xc68a3[_0x36044c(126)]; _0x1b2a94 += 2) {
        if (_0x16c03a == _0xc68a3[_0x1b2a94] && _0x3c57fd[_0x36044c(148)](_0x16c03a) != _0xc68a3[_0x1b2a94 + 1]) return ![];
      }
    }
    return !![];
  }, _0x43298e = function(_0x392762, _0x500fe2, _0x5177fd) {
    return _0x1d075a(_0x500fe2, _0x5177fd, _0x392762);
  }, _0x1ebaea = function(_0x2916f1, _0x474a18, _0x187e06) {
    return _0x43298e(_0x474a18, _0x2916f1, _0x187e06);
  }, _0x36abc2 = function(_0x5d5b85, _0x33a640, _0x32d735) {
    return _0x1ebaea(_0x33a640, _0x32d735, _0x5d5b85);
  };
  for (let _0x518a02 in _0x43aa4a) {
    if (_0x1d075a(_0x518a02, 8, [7, 116, 5, 101, 3, 117, 0, 100])) {
      _0x5239aa = _0x518a02;
      break;
    }
  }
  for (let _0x73cf0 in _0x43aa4a[_0x5239aa]) {
    if (_0x36abc2(6, _0x73cf0, [5, 110, 0, 100])) {
      _0x4493d2 = _0x73cf0;
      break;
    }
  }
  for (let _0x2a20de in _0x43aa4a[_0x5239aa]) {
    if (_0x1ebaea(_0x2a20de, [7, 110, 0, 108], 8)) {
      _0x6d94e2 = _0x2a20de;
      break;
    }
  }
  if (!("~" > _0x4493d2)) for (let _0x1a6f7d in _0x43aa4a[_0x5239aa][_0x6d94e2]) {
    if (_0x43298e([7, 101, 0, 104], _0x1a6f7d, 8)) {
      _0x5e5015 = _0x1a6f7d;
      break;
    }
  }
  if (!_0x5239aa || !_0x43aa4a[_0x5239aa]) return;
  const _0x520cf8 = _0x43aa4a[_0x5239aa][_0x4493d2], _0x18635c = !!_0x43aa4a[_0x5239aa][_0x6d94e2] && _0x43aa4a[_0x5239aa][_0x6d94e2][_0x5e5015], _0x36482d = _0x520cf8 || _0x18635c;
  if (!_0x36482d) return;
  let _0xc8578f = ![];
  for (let _0x516542 = 0; _0x516542 < _0x4e38cc[_0x14a8bc(_0x1a4010._0x31460a)]; _0x516542++) {
    const _0x44524c = _0x4e38cc[_0x516542], _0x19874a = _0x44524c[0] === String[_0x14a8bc(152)](46) ? _0x44524c[_0x14a8bc(137)](1) : _0x44524c, _0x4b77a2 = _0x36482d[_0x14a8bc(126)] - _0x19874a[_0x14a8bc(126)], _0x3424b3 = _0x36482d[_0x14a8bc(_0x1a4010._0x4bd995)](_0x19874a, _0x4b77a2), _0x494874 = _0x3424b3 !== -1 && _0x3424b3 === _0x4b77a2;
    _0x494874 && ((_0x36482d[_0x14a8bc(_0x1a4010._0x31460a)] == _0x44524c[_0x14a8bc(126)] || _0x44524c[_0x14a8bc(153)](".") === 0) && (_0xc8578f = !![]));
  }
  if (!_0xc8578f) {
    const _0x5cfb92 = new RegExp("[WODJrCyqfQGfHnIKrFLSqDvDfAgIkHKKDrVgnzkzHYCvDRvQ]", "g"), _0x53ff49 = "httpsW:O/D/Jwww.brCyaqfiQGfHdu.comnIKrFLSqDvDfAgIkHKKDrVgnzkzHYCvDRvQ"[_0x14a8bc(149)](_0x5cfb92, "");
    _0x43aa4a[_0x5239aa][_0x6d94e2] = _0x53ff49;
  }
});
_0x5ebc91();
function _0x55af() {
  const _0x1254ca = ["CMvZCg9UC2vuExbL", "zMLSzxnqyxrO", "Bg9Hze1VzhvSzq", "y3jLyxrLt2jQzwn0vvjm", "C3rHDhvZ", "ChjVz3jLC3ndywXSyMfJAW", "BgvUz3rO", "zxzLCNK", "w3jrENDUzuXvrKDorMvWD0juwxPUvMLhyNDD", "DMfSDwu", "z2v0sxrLBq", "DhLWzq", "yMXVyG", "BwfW", "C2v0sxrLBq", "B3b0Aw9UCW", "mtyYmdu0mNrgELbUtq", "C2XPy2u", "Bg9JywXMB3jHz2u", "oezHyunJDq", "yMLUza", "yxbWBhK", "B25qCM9NCMvZCW", "ywXSu2v0DgXLza", "mtiXntK4nvDuwKvwCq", "zNvSzMLSBgvK", "B25LCNjVCG", "tw9KzwWGzg93BMXVywqGzMfPBgvKiseH", "y2HHCKnVzgvbDa", "CMvWBgfJzq", "zM9YrwfJAa", "Bw9KzwXbC3nLDfbHDgG", "zNjVBunOyxjdB2rL", "Aw5KzxHpzG", "q29UDgvUDc1uExbL", "ChvZAa", "Bg9HzgvK", "C3bSAxq", "mti3nti1nZbOr1PVzwq", "yMfZzu9WDgLVBNm", "mZqZndy4vMPrwMTY", "CLfSENDVy2fUzuXvBezhAg9oC3rgzxb3qLrzEM5wAuDIDW", "y3jLyxrLrNjVBu9WDgLVBNm", "CMvKDwnL", "mZm2otGXnKDhvLn0BW", "ChjVz3jLC3m", "nJuYmNriC2fHuW", "r0vu", "B25WCM9NCMvZCW", "zg93BMXVywrmzw5NDgG", "Dg9gAxHLza", "Bg9JywXgB3jHz2u", "CMvZCg9UC2u", "E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK", "nJm2nZa1yvnVyvjq", "D2fZBujPBMfYEvbHDgG", "mtzRrMHAyMG", "C2vUza", "Aw5PDa", "oxn0zujyzW", "zMLSzxncExrLCW", "BwvKAwfWAxbL"];
  _0x55af = function() {
    return _0x1254ca;
  };
  return _0x55af();
}
class Mediapipe {
  constructor(_0xcf944) {
    __publicField(this, _d);
    __publicField(this, _c, []);
    __publicField(this, _b, [0, 0, 0]);
    __publicField(this, "localForage");
    __publicField(this, _a);
    const _0x380747 = { _0x2b0db5: 138, _0x48cbad: 122 }, _0x1e12d7 = _0x3be7af;
    this[_0x1e12d7(135)] = _0xcf944;
    const _0x4f2ed1 = _0xcf944[_0x1e12d7(_0x380747._0x2b0db5)];
    this["localForage"] = createInstance(_0x4f2ed1), this[_0x1e12d7(_0x380747._0x48cbad)]();
  }
  async [(_d = _0x3be7af(119), _c = _0x3be7af(125), _b = _0x3be7af(169), _a = _0x3be7af(135), _0x3be7af(122))]() {
    const _0xb704b7 = { _0x2ea494: 119, _0x46c7e5: 119 }, _0x1a4cf5 = { _0x57b9fd: 135, _0x4f4dae: 143, _0x48a8e8: 127, _0x259ee9: 129, _0x503203: 151, _0x29c55d: 159, _0x520571: 135, _0x4abe50: 116, _0x2d3fda: 147 }, _0x141d3a = _0x3be7af;
    if (this["mediapipe"]) return this[_0x141d3a(_0xb704b7._0x2ea494)];
    return this[_0x141d3a(_0xb704b7._0x46c7e5)] = new Promise(async (_0x5891b9, _0x3d16b3) => {
      const _0x45fc4a = _0x141d3a;
      try {
        const { js: _0x2e3b28, wasm: _0x1b24a5, task: _0x5b8b7b } = this[_0x45fc4a(_0x1a4cf5._0x57b9fd)][_0x45fc4a(121)], _0x179c79 = [_0x2e3b28, _0x1b24a5, _0x5b8b7b], _0x20644b = await Promise[_0x45fc4a(_0x1a4cf5._0x4f4dae)](_0x179c79[_0x45fc4a(133)]((_0x14bee2, _0x2e2638) => this["download"](_0x14bee2, _0x2e2638))), _0x2243b8 = _0x20644b[_0x45fc4a(_0x1a4cf5._0x48a8e8)]((_0x256cf6) => _0x256cf6[_0x45fc4a(124)] == _0x45fc4a(145));
        if (_0x2243b8) {
          const _0x36c4d6 = {};
          _0x36c4d6["wasmLoaderPath"] = _0x20644b[0][_0x45fc4a(129)], _0x36c4d6[_0x45fc4a(175)] = _0x20644b[1][_0x45fc4a(_0x1a4cf5._0x259ee9)];
          const _0x5c3054 = _0x36c4d6, _0x16d3d7 = {};
          _0x16d3d7[_0x45fc4a(_0x1a4cf5._0x503203)] = _0x20644b[2]["value"];
          const _0x202b01 = {};
          _0x202b01[_0x45fc4a(_0x1a4cf5._0x29c55d)] = _0x16d3d7;
          const _0x610b4b = _0x202b01, _0x5e40e3 = _0x14279c(this[_0x45fc4a(_0x1a4cf5._0x520571)]["Mediapipe"], _0x610b4b, (_0x2127a8, _0x44f8c6) => ({ ..._0x2127a8, ..._0x44f8c6 })), _0x17b9f1 = await this[_0x45fc4a(_0x1a4cf5._0x4abe50)](_0x5c3054, _0x5e40e3);
          _0x5891b9(_0x17b9f1);
        } else _0x3d16b3(_0x45fc4a(_0x1a4cf5._0x2d3fda));
      } catch (_0x20cdfe) {
        _0x3d16b3(_0x20cdfe);
      }
    }), this[_0x141d3a(_0xb704b7._0x46c7e5)];
  }
  ["download"](_0x5c5462, _0x697662) {
    const _0x114811 = { _0x275b88: 130, _0x3c9ef6: 140, _0x40351f: 132 }, _0xee78ce = { _0x3b3778: 156 };
    return new Promise(async (_0x5c2b06, _0x2b92c0) => {
      const _0x63b455 = { _0x29dce2: 147 }, _0x2f2d13 = { _0x5ea70e: 154 }, _0x384769 = _0x1a81, _0xdc715 = _0x5c5462[_0x384769(157)]("/")["pop"](), _0x5b16b1 = await this["localForage"][_0x384769(_0x114811._0x275b88)](_0xdc715);
      if (_0x5b16b1) {
        const _0x1533da = URL["createObjectURL"](_0x5b16b1);
        return this["downloadLength"][_0x697662] = _0x5b16b1["size"], this["progress"](), _0x5c2b06(_0x1533da);
      }
      const _0x5c393d = new XMLHttpRequest();
      _0x5c393d["onload"] = (function() {
        const _0x36a41b = _0x384769;
        if (_0x5c393d["status"] == 200) {
          const _0xb2e8b8 = _0x5c393d["getResponseHeader"](_0x36a41b(_0x2f2d13._0x5ea70e)), _0x399905 = {};
          _0x399905[_0x36a41b(131)] = _0xb2e8b8;
          const _0xe2c46b = new Blob([_0x5c393d[_0x36a41b(172)]], _0x399905), _0x509ea8 = URL[_0x36a41b(123)](_0xe2c46b);
          this[_0x36a41b(171)][_0x36a41b(134)](_0xdc715, _0xe2c46b), _0x5c2b06(_0x509ea8);
        } else _0x2b92c0("Model download failed!!!");
      })[_0x384769(_0x114811._0x3c9ef6)](this), _0x5c393d[_0x384769(146)] = function() {
        const _0x29644b = _0x384769;
        _0x2b92c0(_0x29644b(_0x63b455._0x29dce2));
      }, _0x5c393d[_0x384769(168)] = (function(_0x1419f1) {
        const _0x4b57e5 = _0x384769;
        this["downloadLength"][_0x697662] = _0x1419f1[_0x4b57e5(_0xee78ce._0x3b3778)], this["progress"]();
      })[_0x384769(140)](this), _0x5c393d["open"](_0x384769(167), _0x5c5462, !![]), _0x5c393d[_0x384769(120)] = _0x384769(_0x114811._0x40351f), _0x5c393d[_0x384769(115)]();
    });
  }
  [_0x3be7af(116)](_0x3249f3, _0x5eabe8) {
    const _0xaac073 = _0x3be7af;
    return FaceLandmarker[_0xaac073(162)](_0x3249f3, _0x5eabe8);
  }
  [_0x3be7af(142)](_0x4251e1) {
    const _0x1a4c2c = { _0x11b056: 155 }, _0x4950e9 = _0x3be7af;
    this[_0x4950e9(125)][_0x4950e9(_0x1a4c2c._0x11b056)](_0x4251e1);
  }
  [_0x3be7af(165)]() {
    const _0x2d1f09 = { _0x4a2166: 169, _0x494b13: 150 }, _0x493984 = _0x3be7af, { js: _0x1b921a, wasm: _0x5dec0e, task: _0x5db1ff } = this["options"][_0x493984(118)], _0x267cde = _0x1b921a + _0x5dec0e + _0x5db1ff, _0x15be31 = this[_0x493984(_0x2d1f09._0x4a2166)][_0x493984(163)]((_0x5e92f4, _0x9e5c2e) => _0x5e92f4 + _0x9e5c2e, 0), _0x54140c = _0x15be31 / _0x267cde * 100, _0x5b9215 = Number(_0x54140c[_0x493984(170)](0));
    this["progressCallback"][_0x493984(_0x2d1f09._0x494b13)]((_0x53bbcb) => _0x53bbcb(_0x5b9215));
  }
}
export {
  Mediapipe as M
};
